package com.open.fei.config;

import cn.hutool.bloomfilter.BitMapBloomFilter;
import cn.hutool.bloomfilter.BloomFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 布隆过滤器实现key值验证
 * @author zhaoYuFei
 */
@Configuration
public class BloomFilterConfig {

    @Bean
    public BloomFilter messageBloomFilter() {
        return new BitMapBloomFilter(100);
    }
}
